<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>新增员工入职</title>
</head>
<body>
<script type="text/javascript">
	function quxiao(){
		add("ljj-entry");		
	}
	$(function(){
			var time=new Date();
			var timestamp = time.getYear()+""+time.getMonth()+""+time.getDay()+""+time.getHours()+""
			+time.getMinutes()+""+time.getSeconds();
			$("#jb_dh").val(timestamp.substring(0,timestamp.length-1));
			/* 新增入职 */
			$("#entryqd-entry").click(function(){
				alert($("#position_id").combogrid("getValue"));
				$("#entrytj-form").submit();
				$("#entrytj-form").form("clear");
				$("#position_id").combogrid("getValue");
			});
	})

</script>
 <div id="wrnmmp"class="easyui-panel" style=""	>
	<Form  action="insert-duobiao" id="entrytj-form" method="post">
					<div style="border:1px solid red;height: 130px">
						<img src="" style="width:201px;height: 127px;"/>
					</div>
		        	<table  style="padding: 5px 5px 2px 3px;margin-left: 220px;height: 600px">
		        		<tr>
		        			<td><span style=" text-decoration: underline;">基本信息填写</span></td>
		        		</tr>
		        		<tr style="text-align: center;">
		        			<td><input id="jb_dh" name="staffId" class="easyui-textbox" data-options="label:'员工编号',width:280,labelAlign:'right',required:true"/></td>
		        			<td><input  name="staff_name" class="easyui-textbox" data-options="label:'员工名称',width:280,labelAlign:'right',required:true"/></td>
		        		</tr>
		        		<tr>
		        			<td><select name="staff_sex"  class="easyui-combobox"  data-options="label:'性别',width:280,labelAlign:'right',required:true">   
	    							<option>男</option>   
	    							<option>女</option>
							</select></td>
		        			<td><input  name="staff_Political" class="easyui-textbox" data-options="label:'政治面貌',width:280,labelAlign:'right',required:true"/></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="staffYears" class="easyui-textbox" data-options="label:'入职工龄',width:280,labelAlign:'right',required:true"/></td>
		        			<td><input  name="dateentry" class="easyui-datebox" data-options="label:'入职日期',width:280,labelAlign:'right',required:true,editable:false"/></td>
		        		</tr>
		        		<tr>
		        			<td><select class="easyui-combogrid" name="depart_id" 
							    data-options="
						    	label:'部门',
						    	width:280,
						    	labelAlign:'right',
						    	required:true,
							    panelWidth:300,
							    idField:'depart_id',
							    textField:'departName',
							    url:'Department_list',
							    columns:[[
							    {field:'depart_id',title:'部门编号',width:80},
							    {field:'departName',title:'部门名称',width:160},
							    ]],
							    pagination:true,
				    		    pageNumber:1,
				    		    pageSize:2,
				    		    pageList:[2,5]
						    ">
							</select></td>
							<td>
							<select id="position_id" name="position_id"  class="easyui-combogrid" 
							 data-options="
						    	label:'职位',
						    	width:280,
						    	labelAlign:'right',
						    	required:true,
							    panelWidth:300,
							    idField:'position_id',
							    textField:'position_name',
							    url:'ps',
							    columns:[[
							    {field:'position_id',title:'职位id',width:80},
							    {field:'position_name',title:'职位名称',width:160},
							    ]],
							    pagination:true,
				    		    pageNumber:1,
				    		    pageSize:2,
				    		    pageList:[2,5]
						    ">   
							</select>
							</td>
		        		</tr>
		        		<tr>
		        		<td><select name="jobchageId"  class="easyui-combogrid" 
							 data-options="
						    	label:'职务',
						    	width:280,
						    	labelAlign:'right',
						    	required:true,
							    panelWidth:300,
							    idField:'jobchageId',
							    textField:'jobchageName',
							    url:'jobchage_list',
							    columns:[[
							    {field:'jobchageId',title:'职务编号',width:80},
							    {field:'jobchageName',title:'职务名称',width:160},
							    ]],
							    pagination:true,
				    		    pageNumber:1,
				    		    pageSize:2,
				    		    pageList:[2,5]
						    ">   
							</select></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="staff_pwd" class="easyui-textbox" data-options="label:'员工设置密码',width:280,labelAlign:'right',required:true"/></td>
		        			<td><input id="a" name="Entryid" class="easyui-textbox" data-options="label:'入职编号',width:280,labelAlign:'right',required:true"/></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="staff_phone" class="easyui-textbox" data-options="label:'电话号码',width:280,labelAlign:'right',required:true"/></td>
		        			<td><input  name="entytime" value="new Date()" class="easyui-datebox" data-options="label:'提交时间',width:280,labelAlign:'right',required:true,editable:false" readonly="readonly"/></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="entyensourrce" class="easyui-textbox" data-options="label:'来源',width:280,labelAlign:'right',required:true"/></td>
		        		</tr>
		        		<tr>
		        			<td><span style=" text-decoration: underline;">合同信息填写</span></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="Contreact_id" class="easyui-textbox" data-options="label:'合同编号',width:280,labelAlign:'right',required:true"/></td>
		        			<td><input  name="contract_Desc" class="easyui-textbox" data-options="label:'合同描述',width:280,labelAlign:'right',required:true"/></td>
		        		</tr>
		        		<tr>
		        			<td><select name="contract_TypeName"  class="easyui-combobox"  data-options="label:'合同类型',width:280,labelAlign:'right',required:true">   
	    							<option>劳动合同</option>   
	    							<option>实习合同</option>
	    							<option>劳务合同</option> 
	    							<option>其他合同</option>      
							</select></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="EndDate" value="new Date()" class="easyui-datebox" data-options="label:'合同开始日期',width:280,labelAlign:'right',required:true,editable:false" readonly="readonly"/></td>
		        			<td><input  name="StartDate" class="easyui-datebox" data-options="label:'结束日期',width:280,labelAlign:'right',required:true,editable:false"/></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="tryEndDate" class="easyui-datebox" data-options="label:'试用期结束日期',width:280,labelAlign:'right',required:true,editable:false"/></td>
		        			<td><input  name="remarks" class="easyui-textbox" data-options="label:'备注',width:280,labelAlign:'right',required:true"/></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="bwr_id" class="easyui-textbox" data-options="label:'转正编号',width:280,labelAlign:'right',required:true"/></td>
		        			<td><input  name="bwr_Date" class="easyui-datebox" data-options="label:'转正日期',width:280,labelAlign:'right',required:true,editable:false"/></td>
		        		</tr>
		        		<tr>
		        			<td><input  name="bwr_time" class="easyui-datebox" data-options="label:'转正提交日期',width:280,labelAlign:'right',required:true,editable:false"/></td>
		        		</tr>
		        	</table>
		        	<div style="text-align: center;margin: 10px 1px 1px 1px">
					<a id="entry-gb" onClick="quxiao()" class="easyui-linkbutton" data-options="width:100">返回</a>
					<a id="entryqd-entry"  class="easyui-linkbutton" data-options="width:100">确定</a>
					</div>
	 </Form>
</div>
</body>
</html>